from django.conf.urls import patterns, include, url
from django.contrib import admin
from rest_framework import routers
from .views.ResidenciaView import ResidenciaViewSet
from .views.ServicioView import ServicioViewSet
from .views.ComprobanteView import ComprobanteViewSet
from .views.TipoPagoView import TipoPagoViewSet
from .views.ServicioAdView import ServicioAdViewSet
from .views.PersonaView import PersonaViewSet
from .views.ContratoView import ContratoViewSet
from .views.ServicioOpView import ServicioOpViewSet

# Routers provide an easy way of automatically determining the URL conf.
router = routers.DefaultRouter()

router.register(r'residencias', ResidenciaViewSet)
router.register(r'servicios', ServicioViewSet)
router.register(r'comprobantes', ComprobanteViewSet)
router.register(r'tipopagos', TipoPagoViewSet)
router.register(r'servicioads', ServicioAdViewSet)
router.register(r'personas', PersonaViewSet)
router.register(r'contratos', ContratoViewSet)
router.register(r'servicioops', ServicioOpViewSet)

urlpatterns = patterns(
    '',
    url(r'^', include(router.urls)),

)
